package com.lanqiao.attendance.mapper;

import com.lanqiao.attendance.pojo.Class;
import com.lanqiao.attendance.vo.ClassPartVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ClassMapper {
    int insertClass(Class cls);
    Class queryClassAllById(long id);
    Class queryClassAllByName(String name);
    int deleteClassById(long id);
    List<Class> queryClassAll();
    Class queryClassPartByName(String name);
    int updateClassAllById(Class cls);
    List<Class> queryAllClassAll();

    List<Class> queryByTeacherName(String teaName);

    void changeNum(String className,int number);


}
